

package entities;

import java.util.ArrayList;
import org.newdawn.slick.Animation;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.geom.Polygon;
import physics.Physics;


public class entityObject implements Entity{
    private float posX;
    private float posY;
    private float velX;
    private float velY;
    private Polygon poly;
    private ArrayList<Image> imgs;
    private Animation animation;
    private float margenUp;




    public float getPosX() {
        return posX;
    }

    public float getPosY() {
        return posY;
    }

    public void setPosX(float posX) {
        this.posX = posX;
    }

    public void setPosY(float posY) {
        this.posY = posY;
    }

    public float getVelX() {
        return velX;
    }

    public float getVelY() {
        return velY;
    }

    public void setVelX(float velX) {
        this.velX = velX;
    }

    public void setVelY(float velY) {
        this.velY = velY;
    }

    public Polygon getPoly() {
        return poly;
    }

    public void setPoly(float xLeft, float xRight, float yUp, float yBottom) {
        this.poly = new Polygon(new float[]{xLeft, yUp, xRight, yUp, xRight, yBottom, xLeft, yBottom});
    }

    public ArrayList<Image> getImgs() {
        return imgs;
    }

    public void setImgs(ArrayList<Image> imgs) {
        this.imgs = imgs;
    }

    public Animation getAnimation() {
        return animation;

    }

    public void setAnimation(Animation animation) {
        this.animation = animation;
    }

    public void Update(GameContainer gc, int delta, Physics phys) {
    }

    public void Render(GameContainer gc, Graphics g, int incX, int incY) {
        g.drawAnimation(animation, posX + incX, posY + incY);
    }

   
}
